﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace NCEdu.Web.Attendance
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int AttendanceId=(Convert.ToInt32(strid));
					ShowInfo(AttendanceId);
				}
			}
		}
		
	private void ShowInfo(int AttendanceId)
	{
		NCEdu.BLL.Attendance bll=new NCEdu.BLL.Attendance();
		NCEdu.Model.Attendance model=bll.GetModel(AttendanceId);
		this.lblAttendanceId.Text=model.AttendanceId.ToString();
		this.lblstuNo.Text=model.stuNo.ToString();
		this.lblAttendanceState.Text=model.AttendanceState.ToString();
		this.lblAttendanceStlye.Text=model.AttendanceStlye?"是":"否";

	}


    }
}
